import cookies from 'react-cookies';


const token = "adminToken";
const orgInfo = "orgInfor";

// 存储 Token
export function setToken(value){
  cookies.save(token,value);
};

export function getToken(){
  return cookies.load(token);
};

export function deleteToken(){
  return cookies.remove(token); 
}





// 存储 orgInfo
export function setOrgInfo(value){
  cookies.save(orgInfo,value);
};

export function getOrgInfo(){
  return cookies.load(orgInfo);
};

export function deleteOrgInfo(){
  return cookies.remove(orgInfo);
}